import instance from "@/axios";

// 获取资源列表
export const  resourcesPage = (searchForm)=>instance.post("/resources/page",searchForm)

// 文件上传
export const  uploadResource = (formData)=>instance.post("/resources/upload",formData)

// 添加资源名称
export const  addResourceInfo = (formData)=>instance.post("/resources/add",formData)

// 添加资源名称
export const deleteResource = (uuid)=>instance.delete("/resources/delete/"+uuid)

// 下载资源
export const downloadResource = (uuid)=>instance.get("/resources/download/"+uuid,{responseType:'arraybuffer'})


